package com.xiaoshuidi.cloud.module.report.dal.mapper.report;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.controller.finance.vo.ReceivableReqVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReceivableDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface ReceivableMapper extends BaseMapperX<ReceivableDO> {


    ReceivableDO selectRentReceivableByContractIdAndMonth(@Param("contractId") Long contractId , @Param("statisticsMonth") String statisticsMonth);

    List<ReceivableDO> selectListForPage(@Param("req") ReceivableReqVO reqVO);

    List<ReceivableDO> selectListForExport(@Param("req") ReceivableReqVO reqVO);

    long countListForPage(@Param("req") ReceivableReqVO reqVO);


    ReceivableDO selectTotalAmountInMonth(@Param("req") ReceivableReqVO reqVO);
}
